package com.happycat.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.happycat.Pagination;
import com.happycat.ResponseHeaderModel;
import com.happycat.ResponseModel;
import com.happycat.mobile.model.UserManitoApply;
import com.happycat.mobile.service.UserManitoApplyService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liaoyong
 * @since 2020-08-01
 */
@RestController
@RequestMapping("/userManitoApply")
@Api(value = "", description = "接口")
public class UserManitoApplyController {
    @Autowired
	private UserManitoApplyService userManitoApplyService;
	
	@ApiOperation(value = "详情")
    @RequestMapping(method = RequestMethod.POST, value = "/detail")
	public ResponseModel<UserManitoApply> detail(@RequestBody UserManitoApply userManitoApply){
		return userManitoApplyService.selectOne(userManitoApply);
	}
	
	@RequestMapping(method = RequestMethod.POST, value = "/page")
	@ApiOperation(value = "分页列表")
	public ResponseModel<Page<UserManitoApply>> Page(@RequestBody Pagination<UserManitoApply>page){
		return userManitoApplyService.pageList(page);
	}
	
	@RequestMapping(method = RequestMethod.POST, value = "/add")
	@ApiOperation(value = "新增")
	public ResponseHeaderModel add(@RequestBody UserManitoApply userManitoApply){
	
	   return userManitoApplyService.add(userManitoApply);
	}
	@ApiOperation(value = "编辑")
	@RequestMapping(method = RequestMethod.POST, value = "/modify")
	public ResponseHeaderModel modify(@RequestBody UserManitoApply userManitoApply){
	
	   return userManitoApplyService.modify(userManitoApply);
	}
	
	@ApiOperation(value = "大神实名认证")
	@RequestMapping(method = RequestMethod.POST, value = "/certification")
	public ResponseHeaderModel certification(@RequestBody UserManitoApply userManitoApply){
	
	   return userManitoApplyService.certification(userManitoApply);
	}
	
	@ApiOperation(value = "大神技能")
    @RequestMapping(method = RequestMethod.POST, value = "/userManitoSkillList")
	public ResponseModel<List<UserManitoApply>> userManitoSkillList(@RequestBody UserManitoApply userManitoApply){
		
		
		return userManitoApplyService.userManitoSkillList(userManitoApply);
	}
	
}

